package com.itboy.mall.pms.attrgroup.vo;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.itboy.common.annotation.Excel;
import com.itboy.mall.pms.attr.vo.MallAttrVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.List;


/**
 * 属性分组视图对象 mall_attr_group
 *
 * @author itboy
 * @date 2021-07-17
 */
@Data
@ApiModel("属性分组视图对象")
public class MallAttrGroupVo {

	private static final long serialVersionUID = 1L;

	/** 分组id */
	@ApiModelProperty("分组id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long attrGroupId;

	/** 组名 */
	@Excel(name = "组名")
	@ApiModelProperty("组名")
	private String attrGroupName;

	/** 排序 */
	@Excel(name = "排序")
	@ApiModelProperty("排序")
	private Long sort;

	/** 描述 */
	@Excel(name = "描述")
	@ApiModelProperty("描述")
	private String descript;

	/** 组图标 */
	@Excel(name = "组图标")
	@ApiModelProperty("组图标")
	private String icon;

	/** 所属分类id */
	@Excel(name = "所属分类id")
	@ApiModelProperty("所属分类id")
	@JsonSerialize(using = ToStringSerializer.class)
	private Long catalogId;

	/** 所属分类名称 */
	@Excel(name = "所属分类名称")
	@ApiModelProperty("所属分类名称")
	private String catalogName;

	/** 所属分类数组 */
	@Excel(name = "所属分类数组")
	@ApiModelProperty("所属分类数组")
	private String[] catalogIds;


	@ApiModelProperty("所属分类数组下的属性")
	private List<MallAttrVo> mallAttrVoList;
}
